package com.Register.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SkillDocumentDTO implements Serializable {
    @Schema(description = "标题")
    private String title;

    @Schema(description = "文档路径")
    private String fileUrl;

    @Schema(description = "文章封面图片路径")
    private String imageUrl;

    @Schema(description = "发布组织")
    private String organization;

    @Schema(description = "浏览数")
    private Long views;

    @Schema(description = "一句话介绍这个文章的内容")
    private String description;

    @Schema(description = "文章类别，用,或者，切分")
    private String tag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
